<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sticky Footer at the Bottom of the Screen</title>
    <style>
        .container {
            overflow: hidden auto;
            width: 100vw;
            height: 100vh;
            scroll-snap-type: y mandatory;
        }

        .box {
            width: 100vw;
            height: 100vh;
            scroll-snap-align: center;
        }
        .box1{
            width: 300px;
            height: 40px;
            background-color: #dbfbf0;
            position: sticky;
            top: 50px;
        }

    </style>
</head>
<body>
<div class="container">
    <div class="box" style="">内容1</div>
    <div class="box" style="">内容2</div>
    <div class="box" style="">内容3</div>
    <div class="box" style="">内容4</div>
    <div class="box" style="">内容5</div>
</div>

<div class="box1"></div>
</body>
</html>